package com.itheima.a01mycollection;

import java.util.ArrayList;
import java.util.Collection;

public class A06_CollectionDemo6 {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        coll.add("zhangsan");
        coll.add("lisi");
        coll.add("wangwu");

        //1.增强for循环
//        for (String s : coll) {
//            System.out.println(s);
//        }
        for (String s : coll) {
            s="qqq";
        }
        System.out.println(coll);
    }
}
